package com.sgl.blog.service;

import com.sgl.blog.pojo.BlogComment;
import com.sgl.blog.pojo.BlogLikes;

import java.util.List;
import java.util.Map;

public interface CommentService {

    /**
     * 根据文章id查询评论
     * @param id
     * @return
     */
    List<Map<String,Object>> findByArticleId(Integer id);

    /**
     * 添加评论
     * @param comment
     * @return
     */
    Boolean insertComment(BlogComment comment);

    /**
     * 删除评论
     * @param comment
     * @return
     */
    Boolean deleteComment(BlogComment comment);


}
